package com.caimiao.miao.library.utils;

import android.util.Base64;

import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.OutputStream;

public class Base64Util {

    public static String encode(byte[] value) {
        return Base64.encodeToString(value, Base64.DEFAULT);
    }

    public static byte[] decode(byte[] value) {
        return Base64.decode(value, Base64.DEFAULT);
    }
}
